import '@/assets/main.css'

import { createApp } from 'vue';
import App from './App.vue';
import router from './router';
import { createPinia } from "pinia";
import elementPlus from 'element-plus';
import SvgIcon from './components/svgIcon/Index.vue';

import * as ElementPlusIconsVue from '@element-plus/icons-vue';

const app = createApp(App);
app.use(router)
app.use(elementPlus)
app.use(createPinia())
app.mount('#app')
app.component('svg-icon', SvgIcon);


//注册所有图标组件
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component);
}